#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include"Queue.h"
int main()
{
	Queue q;
	QueueInit(&q);
	for (int i = 0;i<=5;i++) 
	{
		QDataType n;
		scanf("%d", &n);
		QueuePush(&q,n);
	}
	while (q.size)
	{
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
	}
	QueuePop(&q);
	while (q.size)
	{
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
	}
	QueueDestroy(&q);
	return 0;
}
